package com.bridgeQQ.client.core.client
{
	import flash.events.IEventDispatcher;

	public interface IConnectionClient extends IEventDispatcher 
	{
		/**
		 * 注册 handler,handler作为接受信息的函数.第一个参数是好友peerID
		 * 其他参数则是好友传递过来的.
		 * @param name
		 * @param handler
		 * 
		 */	
		function registerHandler(name:String, handler:Function):void;
		
		function send(userID:String, handler:String, ...params):String
	}
}